package it.fuesi.synotools.model.base;

import java.util.Date;

/**
 * Created by pascotto on 16/10/14.
 */
public abstract class SynologyBaseResponse<T extends ADataObject> {

    private boolean success;
    private ErrorObject error;
    private ErrorObject errno;
    private Date ts;

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public abstract  T getData();

    public abstract void setData(T data) ;

    public ErrorObject getError() {
        return error;
    }

    public void setError(ErrorObject error) {
        this.error = error;
    }

    public ErrorObject getErrno() {
        return errno;
    }

    public void setErrno(ErrorObject errno) {
        this.errno = errno;
    }
}
